cmake_minimum_required(VERSION 3.22)
project(mqtt2ros)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

find_package(ament_cmake_auto REQUIRED)
find_package(rclcpp REQUIRED)
find_package(nav_msgs REQUIRED)
find_package(geometry_msgs REQUIRED)
find_package(PahoMqttCpp REQUIRED)

ament_auto_find_build_dependencies()

include_directories(
        include
)

ament_auto_add_executable(mqtt2ros_node
  src/mqtt2ros_node.cpp
)

target_link_libraries(mqtt2ros_node
        PahoMqttCpp::paho-mqttpp3
)

ament_auto_package()


